const layoutView = require('../views/layout.art')
const cityView = require('../views/position.art')


class Index{
    
    bindClick(){
        //页面切换
        location.hash = $(this).attr('data-to')
    }

    render(){
        const html = layoutView()
        const city = cityView()

        $('#root').html(html)

        //绑定事件
        $('footer li').on('click',this.bindClick)
    }
}

export default new Index()